package com.caht.controller.user.Login;

import com.caht.DTO.UserDTOS.FollowUserDTO;
import com.caht.VO.UserFollowVO;
import com.caht.result.Result;
import com.caht.servier.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 操作 用户层
 */
@RestController
@RequestMapping("/user/follow")
public class UserController {
    @Autowired
    private UserService userService;
    // 获取关注用户
    @GetMapping
    public Result<List<UserFollowVO>> GetFollowUser(@RequestParam(name = "followingId",required = false) Long followingId) {
        return Result.success(userService.getFollowUser(followingId));
    }
}
